//
//  Utitlity.h
//  wiimudemo_conf
//
//  Created by 赵帅 on 14-3-28.
//  Copyright (c) 2014年 wiimu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"

typedef enum{
    stringType,
    jsonType,
    xmlType
} responseType;

@interface Utitlity : NSObject

+(void)commonHTTPMethod:(NSString *)url responseType:(responseType)type success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure;

+ (void)postHttpMethod:(NSString *)url data:(NSDictionary *)dataDic success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure;

+ (NSString *)httpURLEncode:(NSString *)plainText;

//!**** 判断ipUrl是否存在 **//
+ (NSString *)judgeipUrl;
@end
